package org.jeecg.modules.video.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 短视频信息
 * @Author: jeecg-boot
 * @Date:   2020-05-21
 * @Version: V1.0
 */
@Data
@TableName("short_video_info")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="short_video_info对象", description="短视频信息")
public class ShortVideoInfo {

	/**主键ID 短视频ID*/
	@TableId(type = IdType.ID_WORKER_STR)
	@ApiModelProperty(value = "主键ID 短视频ID")
	private String id;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
	@ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**修改人*/
	@Excel(name = "修改人", width = 15)
	@ApiModelProperty(value = "修改人")
	private String updateBy;
	/**修改时间*/
	@Excel(name = "修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "修改时间")
	private Date updateTime;
	/**上传短视频人*/
	@Excel(name = "上传短视频人", width = 15)
	@ApiModelProperty(value = "上传短视频人")
	private String userId;
	/**视频状态 0：正常 1：删除 */
	@Excel(name = "视频状态 0：正常 1：删除 ", width = 15)
	@ApiModelProperty(value = "视频状态 0：正常 1：删除 ")
	private Integer videoStatus;
	/**观看人数*/
	@Excel(name = "观看人数", width = 15)
	@ApiModelProperty(value = "观看人数")
	private String watchNum;
	/**视频上传时间*/
	@Excel(name = "视频上传时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "视频上传时间")
	private Date videoUploadTime;
	/**视频播放地址*/
	@Excel(name = "视频播放地址", width = 15)
	@ApiModelProperty(value = "视频播放地址")
	private String videoBroadcastUrl;
	/**封面url*/
	@Excel(name = "封面url", width = 15)
	@ApiModelProperty(value = "封面url")
	private String coverUrl;
	/**主标题*/
	@Excel(name = "主标题", width = 15)
	@ApiModelProperty(value = "主标题")
	private String mainTitle;
	/**副标题*/
	@Excel(name = "副标题", width = 15)
	@ApiModelProperty(value = "副标题")
	private String subTitle;
	/**视频大小*/
	@Excel(name = "视频大小", width = 15)
	@ApiModelProperty(value = "视频大小")
	private String videoSize;
	/**视频时长*/
	@Excel(name = "视频时长", width = 15)
	@ApiModelProperty(value = "视频时长")
	private String videoPlayTime;
	/**关键字*/
	@Excel(name = "关键字", width = 15)
	@ApiModelProperty(value = "关键字")
	private String keyword;
	/**是否发布 1、是  0、否*/
	@Excel(name = "是否发布 1、是  0、否", width = 15)
	@ApiModelProperty(value = "是否发布 1、是  0、否")
	private Integer isRelease;
	/**发布日期*/
	@Excel(name = "发布日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "发布日期")
	private Date releaseTime;
	/**是否置顶 1是0否*/
	@Excel(name = "是否置顶 1是0否", width = 15)
	@ApiModelProperty(value = "是否置顶 1是0否")
	private Integer isTop;
	/**排序*/
	@Excel(name = "排序", width = 15)
	@ApiModelProperty(value = "排序")
	private Integer sort;
	/**评论数量*/
	@Excel(name = "评论数量", width = 15)
	@ApiModelProperty(value = "评论数量")
	private Integer remarkNum;
	/**收藏量*/
	@Excel(name = "收藏量", width = 15)
	@ApiModelProperty(value = "收藏量")
	private Integer collectionNum;
	/**转发量*/
	@Excel(name = "转发量", width = 15)
	@ApiModelProperty(value = "转发量")
	private Integer forwardNum;
	/**点赞数*/
	@Excel(name = "点赞数", width = 15)
	@ApiModelProperty(value = "点赞数")
	private Integer thumbsNum;
	/**分享数量*/
	@Excel(name = "分享数量", width = 15)
	@ApiModelProperty(value = "分享数量")
	private Integer shareNum;
	/**分享到  1、微信  3、微博 4、今日头条 5、网易新闻'*/
	@Excel(name = "分享到  1、微信  3、微博 4、今日头条 5、网易新闻'", width = 15)
	@ApiModelProperty(value = "分享到  1、微信  3、微博 4、今日头条 5、网易新闻'")
	private String shareThird;
	/**视频时长*/
	@Excel(name = "视频文件id", width = 15)
	@ApiModelProperty(value = "视频文件id")
	private String videoFileId;

	//yagang add 2020-05-27
	@ApiModelProperty(value = "短视频用户昵称")
	@TableField(exist=false)
	private String userNickName;

	@ApiModelProperty(value = "短视频用户头像")
	@TableField(exist=false)
	private String userHeadPhoto;

	@ApiModelProperty(value = "个性签名")
	@TableField(exist=false)
	private String perSignature;

	@TableField(exist = false)
	@ApiModelProperty(value = "用户点赞标志")
	private Integer userThumbsFlag;//1-点赞过；0否

}
